import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        complex c1 = new complex(sc.nextInt(),sc.nextInt());
        complex c2 = new complex(sc.nextInt(),sc.nextInt());
        System.out.print("c1=");
        c1.showComp();
        System.out.print("c2=");
        c2.showComp();
        complex c3 = new complex();
        c3 = c1.addComp(c2);
        System.out.print("c1+c2=");
        c3.showComp();
        System.out.print("c1-c2=");
        c3 = complex.subComp(c1,c2);
        c3.showComp();
        System.out.print("c1*c2=");
        c3 = c1.multiComp(c2);
        c3.showComp();
        System.out.print("c1==c2:");
        System.out.println(c1.equalComp(c2));


    }
}
